adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)
commit00f5051a496125861f4d6a0a307470d6d4506686
tree8d3e0c31449d072b5c771a9e26e57017cb393336
parent68867e8dca7707a6d3c7178a08ce1a4318004c9b
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff
src/corelib/mimetypes/qmimedatabase.cpp
src/corelib/mimetypes/qmimeglobpattern.cpp